{% load static %}
{% if book.cover_local_url %}
<img class="media-object" src="{% static  book.cover_url %}">    
{% elif book.cover_url %}
<img class="media-object" src="{{ book.cover_url }}">
{% else %}
    <img class="media-object" src="{% static 'book/no-cover.png' %}">
{% endif %}